<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/comm/header.jsp"%>
<div class="container" style="width:100%">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title" id="aaa"data-toggle="collapse" data-target=".panel-body">
                查询条件
                <span class="caret pull-right" ></span>
            </h3>
        </div>
        <div class="panel-body" style="text-align: center">
            <form class="form-inline" id="queryForm">
                <div class="form-group">
                    <label>合同名称：</label>
                    <input type="text" class="form-control" name="contractName">
                </div>
                <div class="form-group">
                    <label>类型：</label>
                    <select  class="form-control" name="contractTypeId">
                        <option value="0">不限</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>状态：</label>
                    <select  class="form-control" name="contractStartId">
                        <option value="0">不限</option>
                    </select>
                </div>

                <button type="button" onclick="chaxun()" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i> 查询</button>
            </form>
        </div>
    </div>
    <strong><hr/></strong>
    <h3>合同信息列表</h3>
    <div id="toolbar">
    <button class="btn btn-success" onclick="chuangjian()" ><i class="glyphicon glyphicon-user"></i>创建</button>
    <button class="btn btn-warning" onclick="xiugai()" ><i class="glyphicon glyphicon-eye-open"></i>修改</button>
    <button class="btn btn-danger" onclick="chakan()" ><i class="glyphicon glyphicon-eye-open"></i>查看</button>
    <button class="btn btn-circle" onclick="tijiao()" ><i class="glyphicon glyphicon-eye-open"></i>提交</button>
    </div>
    <table id="ContTb"
    <%--启用ajax请求--%>
           data-toggle="table"
           data-url="/Querylist"
    <%--斑马线效果--%>
           data-striped="true"
           data-height="350"
    <%--指明工具栏--%>
           data-toolbar="#toolbar"
    <%--显示分页条，客户端分页--%>
           data-pagination="true"
    <%--服务器端分页--%>
           data-side-pagination="client"
           data-page-size="4"
           data-page-list="[2,4,8]">


        <thead>
        <tr>
            <th data-field="contractId"></th>
            <th data-checkbox="true"></th>
            <th data-field="contractName">合同名称</th>
            <th data-field="contracttype.typeName">合同类型</th>
            <th data-field="contractstart.startName">状态</th>
            <th data-field="lastModifyTime">最后操作时间</th>
            <th data-field="staff.empName">待处理人</th>
            <%--<th  data-formatter="actionFormatter" data-events="actionEvents" >操作</th>--%>
        </tr>
        </thead>
    </table>

    <%--查看详情--%>
    <div id="See">
        <form style="padding:20px 80px" method="get">
        <p>合同名称：<span name="contractName"></span></p>
        <p>合同类型：<span name="contractTypeId"></span></p>
        <p>合同状态：<span name="contractStatus"></span></p>
        <p>合同金额：<span name="contractMoney"></span></p>
        <p>甲方：<span name="partA"></span></p>
        <p>已方：<span name="partB"></span></p>
        <p>企业经营许可证号：<span name="partACode"></span></p>
        <p>企业经营许可证号：<span name="partBCode"></span></p>
        <p>合同内容：<span name="contractContent"></span></p>
        <p>最后修改时间：<span name="lastModifyTime"></span></p>
        <p>备注信息：<span name="contractNote"></span></p>
        <p>待处理人：<span name="processedMan"></span></p>
        </form>
    </div>
    <%--分配--%>
    <%--<div id="fenpei">--%>
        <%--<form style="padding:20px 80px" method="get">--%>
            <%--<input type="hidden" name="serviceId" value=""/>--%>
            <%--<p>服务名称：<span name="name"></span></p>--%>
            <%--<p>服务状态：<span name="start"></span></p>--%>
            <%--<p>服务类型：<span name="leixing"></span></p>--%>
            <%--<p>创建人：<span name="chuangjianren"></span></p>--%>
            <%--<p>创建时间：<span name="chuangjianshijian"></span></p>--%>
            <%--<p>待处理人：<span name="daichuli"></span></p>--%>
            <%--<p>服务内容：<span name="neirong"></span></p>--%>
            <%--<hr size="10px" noshade=false />--%>
            <%--<p class="f">分配给： <select class="form-control ads" name="processedMan">--%>
            <%--</select>--%>
            <%--</p>--%>
        <%--</form>--%>
    <%--</div>--%>
    <%@include file="/comm/footer.jsp"%>
    <script src="/static/scripts/contcreation.js"></script>
    <%--<style>--%>
        <%--.ads {--%>
            <%--border:1px solid #cccccc;--%>
            <%--float: right;--%>
            <%--display: inline;--%>
            <%--width:100px;--%>
            <%--margin-right: 200px;--%>
        <%--}--%>
        <%--.f{--%>
            <%--margin-left: 210px;--%>
            <%--margin-top: 20px;--%>
            <%--text-align: center;--%>
        <%--}--%>
    <%--</style>--%>
